class TicketModel {
  final String? createTimt;
  final String? expiredTime;
  final String? goodsDesc;
  final String? goodsName;
  final String? goodsOrigin;
  final int? goodsType;
  final int? goodsValue;
  final String? id;
  final int? status;
  final int? uid;
  final String? useTime;
  final int? total;

  TicketModel({
    this.createTimt,
    this.expiredTime,
    this.goodsDesc,
    this.goodsName,
    this.goodsOrigin,
    this.goodsType,
    this.goodsValue,
    this.id,
    this.status,
    this.uid,
    this.useTime,
    this.total,
  });

  factory TicketModel.fromJson(Map<String, dynamic> json) => TicketModel(
        createTimt: json["createTimt"],
        expiredTime: json["expiredTime"],
        goodsDesc: json["goodsDesc"],
        goodsName: json["goodsName"],
        goodsOrigin: json["goodsOrigin"],
        goodsType: json["goodsType"],
        goodsValue: json["goodsValue"],
        id: json["id"],
        status: json["status"],
        uid: json["uid"],
        useTime: json["useTime"],
        total: json['total'],
      );

  Map<String, dynamic> toJson() => {
        "createTimt": createTimt,
        "expiredTime": expiredTime,
        "goodsDesc": goodsDesc,
        "goodsName": goodsName,
        "goodsOrigin": goodsOrigin,
        "goodsType": goodsType,
        "goodsValue": goodsValue,
        "id": id,
        "status": status,
        "uid": uid,
        "useTime": useTime,
      };
}
